﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ADO;
using Service.Tactic;

public partial class ManageStrategy : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            categorieGridView1.DataBind();
        }
    }

    
    protected void Button1_Click(object sender, EventArgs e)
    {
        categoriesSqlDataSource1.Insert();
        categorieGridView1.DataBind();
    }

    protected void categorieGridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
        categorieGridView1.EditIndex = -1;
        categorieGridView1.DataBind();
    }
    protected void categorieGridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        categorieGridView1.DataBind();
    }
    protected void categorieGridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        categorieGridView1.EditIndex = e.NewEditIndex;
    }
    protected void categorieGridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        categorieGridView1.EditIndex = -1;
        categorieGridView1.DataBind();
    }
   
}
